package org.vectrics.recruiter.job.event;

import java.util.Locale;

import org.vectrics.common.html.BorderTable;
import org.vectrics.common.html.Cell;
import org.vectrics.common.html.Table;
import org.vectrics.recruiter.job.Job;

public class JobStatusChangeHtmlEmail extends JobHtmlEmail {

	public JobStatusChangeHtmlEmail(Locale locale, Job job) {
		super(locale, job);
	}
	
	protected void renderContent(Cell cell) {
		cell.addElement("<font style=\"font:normal 0.8em Verdana\">"
				+ this.getPhrase("phrase.email.job.status.changed") + "</font><br>");
		Table table = new BorderTable();
		this.addJobInfoTable(this.getJob(), cell);
		this.addJobStatusHistoryTable(this.getJob(), cell);
		cell.addElement(table.toString());
	}	
}
